<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head id="MyHead">
    <script src="../resources/Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="../resources/Scripts/sJScriptIndex.js" type="text/javascript"></script>
    <script src="../resources/Scripts/jquery.easyui.min.js" type="text/javascript"></script>
    <link href="../resources/Content/Default.css" rel="stylesheet" type="text/css" />
    <link href="../resources/Content/IndexStyle.css" rel="stylesheet" type="text/css" />

        <link href="../resources/css/themes/icon.css" rel="stylesheet" type="text/css" />
        <script src="../resources/Scripts/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <link href="../resources/css/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <title>
	

</title>
     <script type="text/javascript" language="javascript">


        $(function () {
             $.extend($.fn.datagrid.methods, {
                 addToolbarItem: function (jq, items) {
                     return jq.each(function () {
                         var dpanel = $(this).datagrid('getPanel');
                         var toolbar = dpanel.children("div.datagrid-toolbar");
                         if (!toolbar.length) {
                             toolbar = $("<div class=\"datagrid-toolbar\"><table cellspacing=\"0\" cellpadding=\"0\"><tr></tr></table></div>").prependTo(dpanel);
                             $(this).datagrid('resize');
                         }
                         var tr = toolbar.find("tr");
                         for (var i = 0; i < items.length; i++) {
                             var btn = items[i];
                             if (btn == "-") {
                                 $("<td><div class=\"datagrid-btn-separator\"></div></td>").appendTo(tr);
                             } else {
                                 var td = $("<td></td>").appendTo(tr);
                                 var b = $("<a href=\"javascript:void(0)\"></a>").appendTo(td);
                                 b[0].onclick = eval(btn.handler || function () { });
                                 b.linkbutton($.extend({}, btn, {
                                     plain: true
                                 }));
                             }
                         }
                     });
                 },
                 removeToolbarItem: function (jq, param) {
                     return jq.each(function () {
                         var dpanel = $(this).datagrid('getPanel');
                         var toolbar = dpanel.children("div.datagrid-toolbar");
                         var cbtn = null;
                         if (typeof param == "number") {
                             cbtn = toolbar.find("td").eq(param).find('span.l-btn-text');
                         } else if (typeof param == "string") {
                             cbtn = toolbar.find("span.l-btn-text:contains('" + param + "')");
                         }
                         if (cbtn && cbtn.length > 0) {
                             cbtn.closest('td').remove();
                             cbtn = null;
                         }
                     });
                 }
             });
         });
    </script>
    
    
    <script type="text/javascript" language="javascript">
        $(function () {
            linshiList("yibaokao");
            setTimeout(function () { linshiList("beiyong"); }, 1000); //不符合条件
            //setTimeout(function () { zhichuList(); }, 1000); //不符合条件
            setTimeout(function () { getshumu(); getshumuZhichu();}, 1000); //临时提交列表
            
            kaoshiRes();//已报考统计数
            

            getDbkNum();//待报考统计数
        });
        function linshiList(obj) {
            //alert(obj);
            var search = "";
            var toolbar = [];
            if (obj == "beiyong") {
                search = "FK_TEID&2018011915500544030930c5add34d5^ta_stateStart_Int&9^ta_stateEnd_Int&9^";

                toolbar = "#tb_beiyong";
            }
            if(obj=="yibaokao"){
                search = 'FK_TEID&2018011915500544030930c5add34d5^ta_stateStart_Int&3^ta_stateEnd_Int&8^';

                toolbar = "#tb_yibaokao";
            } 
            $('#' + obj).datagrid({
                //title: '待考学员列表', //列表的标题
                iconCls: 'icon-site',
                width: 'auto',
                height: 'auto',
                nowrap: true,
                striped: true,
                collapsible: true,
                url: '/GetEnrolled', //获取数据的url
                queryParams: { exaId: $("GetID").val() },
                sortName: 'PK_ID',
                sortOrder: 'desc',
                idField: 'PK_ID',
				
                toolbar: toolbar,
                columns: [[

                   { field: 'ck', checkbox: true }
                  , { field: 'stuId', title: '学员编号', width: 70, sortable: true }
                  , { field: 'stuName', title: '学员', width: 60, sortable: true }
                  , { field: 'stuCardId', title: '身份证号', width: 135, sortable: true }
                 , { field: 'stuRecoderId', title: '档案编号', width: 78, sortable: true }
                  , { field: 'stuPhone', title: '手机号', width: 85, sortable: true }
                  , { field: 'asFrequency', title: '次数', width: 30, sortable: true }
                  , { field: 'asExpenditureStatus', title: '支出状态', width: 60, sortable: true }
                  , { field: 'asSupportStatus', title: '参加状态', width: 60, sortable: true }
                  , { field: 'asExamResults', title: '考试结果', width: 60, sortable: true }
                  , { field: 'asExamDate', title: '考试日期', width: 73, sortable: true  }                
                  , { field: 'asExamStatus', title: '考试状态', width: 60, sortable: true }
                  , { field: 'stuDriverType', title: '准驾车型', width: 60, sortable: true }
                  , { field: 'stuReferees', title: '推荐人', width: 100, sortable: true }
                  , { field: 'peName', title: '分车教练', width: 60, sortable: true }
                  , { field: 'stuAssignsSchool', title: '报名分校', width: 80, sortable: true }
                  , { field: 'stuAssigns', title: '报名分点', width: 80, sortable: true }
                  , { field: 'stuApplyDate', title: '报名日期', width: 120, sortable: true }
                   , { field: 'stuClassType', title: '班别', width: 60, sortable: true }
//                  , { field: 'S_PhysicalDate', title: '体检日期', width: 75, formatter: function (value, rec) {
//                      if (value) {
//                          return dateConvert(value);
//                      }
//                  }
//                  }
                ]],
                pagination: true,
                pageList:[10,50,200,1000],
                rownumbers: true

            });

        }

        //已报考查询
        var search1 = 'FK_TEID&2018011915500544030930c5add34d5^ta_stateStart_Int&3^ta_stateEnd_Int&8^';
                    //“导出”按钮     在6.0版本中修改
        function ExportYibaokao() {          
          $.messager.confirm('操作提示', "确认要导出到EXCEL！", function (r) {
        
         if(r)
         {
         progress();
         
         var p = $('#yibaokao').datagrid('options').columns[0];
            var field = [];//所有的列名
            var title = [];//所有的标题名称
            $(p).each(function () {
               if(this.title!=null)
               {
                    field.push(this.field);
                    title.push(this.title); 
               }
             
            });
           var titlestr = removeHTMLTag(title.join(","))
            //alert(title.join(','));
            $.post("../../T_apply/ExportYibaokao",
                {
                    title: titlestr,
                    field: field.join(","),
                    sortName: $('#yibaokao').datagrid('options').sortName,
                    sortOrder: $('#yibaokao').datagrid('options').sortOrder,
                    search: search1
                }, function (res) {
                    $.messager.progress('close');
                    window.location.href = res;

                });
         }});

            
        };


        function kaoshiRes() {

            $("input[name='ksRes']").click(function () {
                var value = $("input[name='ksRes']:checked").val();
                //var obj = $(".buhege");
                //var obj1 = $(".youxiaoqi");
                if (value == '1') {
                    //obj.show(100);
                    //obj1.hide(100);
                }
                else {
                   // obj.hide(100);
                    //obj1.show(100);
                }
            });
            $("input[name='iscanjia']").click(function () {
                var iscanjia = $("input[name='iscanjia']:checked").val();
                //var obj = $(".buhege");
                //var obj1 = $(".youxiaoqi");
                //alert(iscanjia);
                 var value = $("input[name='ksRes']:checked").val();

                if (iscanjia == '1') {
                    $("input[name=ksRes]:eq(0)").attr("disabled", true);
                    //$("input[name=bukao]:eq(0)").attr("disabled", true);
                    $("input[name=ksRes]:eq(1)").attr("checked", 'checked');
                    //$("input[name=bukao]:eq(1)").attr("checked", 'checked');
                    //$("#bkTitle").html("科目一违&nbsp;约&nbsp;&nbsp;金：");
                    //obj.show(100);
                    //obj1.hide(100);
                }
                else {
                    if(value=='1')
                    {
                        //obj.show(100);
                        //obj1.hide(100);
                    }
                    else
                    {
                        //obj.hide(100);
                        //obj1.show(100);
                    }
                    //$("input[name=bukao]:eq(0)").attr("disabled", false);
                    $("input[name=ksRes]:eq(0)").attr("disabled", false);
                    //$("#bkTitle").html("科目一补&nbsp;考&nbsp;&nbsp;费：");
                }
            });
        
        }
        //科目三理论确认成绩
        function kaoshiRes4() {

            $("input[name='ksRes']").click(function () {
                var value = $("input[name='ksRes']:checked").val();
                //var obj = $(".buhege");
                //var obj1 = $(".youxiaoqi");
                if (value == '1') {
                    //obj.show(100);
                    //obj1.hide(100);
                     //$("input[name=bukao]:eq(1)").attr("value", '11');
                }
                else {
                    //obj.hide(100);
                    //obj1.show(100);
                }
            });
            $("input[name='iscanjia']").click(function () {
                var iscanjia = $("input[name='iscanjia']:checked").val();
                //var obj = $(".buhege");
                //var obj1 = $(".youxiaoqi");
                //alert(iscanjia);
                 var value = $("input[name='ksRes']:checked").val();

                if (iscanjia == '1') {
                    $("input[name=ksRes]:eq(0)").attr("disabled", true);
                    //$("input[name=bukao]:eq(0)").attr("disabled", true);
                    $("input[name=ksRes]:eq(1)").attr("checked", 'checked');
                    //$("input[name=bukao]:eq(1)").attr("checked", 'checked');
                    //$("input[name=bukao]:eq(1)").attr("value", '1');

                    //$("#bkTitle").html("科目一违&nbsp;约&nbsp;&nbsp;金：");
                    //obj.show(100);
                    //obj1.hide(100);
                }
                else {
                     //$("input[name=bukao]:eq(1)").attr("value", '11');

                    if(value=='1')
                    {
                        //obj.show(100);
                        //obj1.hide(100);
                    }
                    else
                    {
                        //obj.hide(100);
                        //obj1.show(100);
                    }
                    //$("input[name=bukao]:eq(0)").attr("disabled", false);
                    $("input[name=ksRes]:eq(0)").attr("disabled", false);
                    //$("#bkTitle").html("科目一补&nbsp;考&nbsp;&nbsp;费：");
                }
            });
        
        }

        //科目三确认成绩
        function kaoshiRes3() {
            $("input[name='ksRes']").click(function () {
                var value = $("input[name='ksRes']:checked").val();
                //var obj = $(".buhege");
                var kemu4=$("#kemu4");
                //var obj1 = $(".youxiaoqi");
                //alert(value);
                if (value == '1') {
                    //obj.show(100);
                    //obj1.hide(100);
                    kemu4.hide(100);//科目四
                }
                else {
                    //obj.hide(100);
                    //obj1.show(100);
                     kemu4.show(100);//科目四
                }
            });
            $("input[name='iscanjia']").click(function () {
                var iscanjia = $("input[name='iscanjia']:checked").val();
                //var obj = $(".buhege");
                //var obj1 = $(".youxiaoqi");
                var kemu4=$("#kemu4");
                //alert(iscanjia);
                 var value = $("input[name='ksRes']:checked").val();

                if (iscanjia == '1') {
                    $("input[name=ksRes]:eq(0)").attr("disabled", true);
                    //$("input[name=bukao]:eq(0)").attr("disabled", true);
                    $("input[name=ksRes]:eq(1)").attr("checked", 'checked');
                    //$("input[name=bukao]:eq(1)").attr("checked", 'checked');
                    //$("#bkTitle").html("科目一违&nbsp;约&nbsp;&nbsp;金：");
                    obj.show(100);
                    //obj1.hide(100);
                    kemu4.hide(100);//科目四
                }
                else {
                    

                    if(value=='1')
                    {
                        //obj.show(100);
                        //obj1.hide(100);
                        kemu4.hide(100);//科目四
                    }
                    else
                    {
                        //obj.hide(100);
                        //obj1.show(100);
                        kemu4.show(100);//科目四
                    }
                    //$("input[name=bukao]:eq(0)").attr("disabled", false);
                    $("input[name=ksRes]:eq(0)").attr("disabled", false);
                    //$("#bkTitle").html("科目一补&nbsp;考&nbsp;&nbsp;费：");
                }
            });

            //科目四操作
                        $("input[name='iscanjia4']").click(function () {
                var iscanjia = $("input[name='iscanjia4']:checked").val();
                //var obj = $(".buhege4");
                //var obj1 = $(".youxiaoqi4");
                //alert(iscanjia);
                 var value = $("input[name='ksRes4']:checked").val();

                if (iscanjia == '1') {
                    $("input[name=ksRes4]:eq(0)").attr("disabled", true);
                    //$("input[name=bukao4]:eq(0)").attr("disabled", true);
                    $("input[name=ksRes4]:eq(1)").attr("checked", 'checked');
                    //$("input[name=bukao4]:eq(1)").attr("checked", 'checked');
                    //$("#bkTitle4").html("科目四违&nbsp;约&nbsp;&nbsp;金：");
                    //obj.show(100);
                    //obj1.hide(100);
                }
                else {
                    

                    if(value=='1')
                    {
                        //obj.hide(100);
                        //obj1.hide(100);
                    }
                    else
                    {
                        //obj.hide(100);
                        //obj1.show(100);
                    }
                    //$("input[name=bukao4]:eq(0)").attr("disabled", false);
                    $("input[name=ksRes4]:eq(0)").attr("disabled", false);
                    //$("#bkTitle4").html("科目四补&nbsp;考&nbsp;&nbsp;费：");
                }
            });

            $("input[name='ksRes4']").click(function () {
                var value = $("input[name='ksRes4']:checked").val();
                //var obj = $(".buhege4");
                //var obj1 = $(".youxiaoqi4");
                if (value == '1') {
                    //obj.hide(100);
                    //obj1.hide(100);
                }
                else {
                    //obj.hide(100);
                    //obj1.show(100);
                }
            });
        
        }


        function isSubmitZx(){
                    var bb=0;
            $.ajax({type:"POST",async:false,cache:false,url:"../../T_ExamPlaces/isSubmitZxAll",data:"ksid=2018011915500544030930c5add34d5",success:function(res){
                //alert(res);
                bb=res;
            }});
            return bb;
        }

        //确认已报考操作
        function baokaoOpert(obj,state) {

//             if(isSubmitZx()!=1)
//            {
//                $.messager.alert('操作提示', '分校没有提交，不能操作!', 'warning');
//                return false;
//            }

        if(isGuidang())
        {
            $.messager.alert('操作提示', '考试已经归档，不能进行操作!', 'info');
            return false;
        }

            var rows = $('#' + obj).datagrid('getSelections');
            if (rows.length == 0) {
                $.messager.alert('操作提示', '请选择数据!', 'warning');
                return false;
            }

                        var isall=true;
            for (var i = 0; i < rows.length; i++) {
                if(rows[i].ks_result!='')
                {
                    isall=false;
                }
            }
            //alert(isall);
            if(isall==false)
            {
                $.messager.alert('操作提示', '考试结果已经确认，不能修改报考结果，请核对！', 'info');
                return false;
            }

            var arr = [];
            for (var i = 0; i < rows.length; i++) {
                arr.push(rows[i].PK_ID);
            }

            $.messager.confirm('操作提示', "确认操作这 " + arr.length + " 项吗？", function (r) {
                if (r) {
                    $.post("../../T_apply/BaoKaoOpert", { query: arr.join(","), bkState: state }, function (res) {
                        if (res == "OK") {
                            //移除删除的数据

                            $.messager.alert('操作提示', '操作成功!', 'info');
                            $("#beiyong").datagrid("reload");
                            $("#beiyong").datagrid("clearSelections");
                            $("#yibaokao").datagrid("reload");
                            $("#yibaokao").datagrid("clearSelections");
                        }
                        else {
                            $.messager.alert('操作提示', res, 'info');
                        }
                    });
                }
            });
        }

        //获取已报考计划数，备用数
        function getshumu() {
            $.post("../../T_apply/getYbkNum", { ksid: '2018011915500544030930c5add34d5' }, function (res) {
                //alert($("#jihua1").text());
              //  $("#cgshu").text(res["cgshu"]);//成功数
               // $("#sbshu").text(res["sbshu"]);//失败数
               // $("#ybkshu").text(res["ybkshu"]);//已报考数
               // $("#cjshu").text(res["cjshu"]);//参加数
               // $("#qkshu").text(res["qkshu"]);//缺考数
               // $("#hgshu").text(res["hgshu"]);//合格数
               // $("#bhgshu").text(res["bhgshu"]);//不合格数
               // $("#tongguo").text(res["tongguo"]);//空降数
                

                //$("#jhshu").text(res["jhshu"]);//计划数
                //$("#byshu").text(res["byshu"]);//备用数

              //  $("#yzcshu").text(res["yzcshu"]);//已支出
               // $("#wzcshu").text(res["wzcshu"]);//未支出
               // $("#dzcshu").text(res["dzcshu"]);//待支出

//                $("#baokaoshu").text(res["baokaoshu"]);//报考支出数
//                $("#baokaofei").text(res["baokaofei"]);//报考费用

//                $("#bukaoshu").text(res["bukaoshu"]);//报考支出数
//                $("#bukaofei").text(res["bukaofei"]);//报考费用
            });
        }                //获取已报考计划数，备用数
        function getshumuZhichu() {
            $.post("../../T_apply/getYbkNumZhichu", { ksid: '2018011915500544030930c5add34d5' }, function (res) {
                $("#baokaoshu").text(res["baokaoshu"]);//报考支出数
                $("#baokaofei").text(formatCurrency(res["baokaofei"]));//报考费用

                $("#bukaoshu").text(res["bukaoshu"]);//报考支出数
                $("#bukaofei").text(formatCurrency(res["bukaofei"]));//报考费用
            });
        }

                //获取计划数，备用数
        function getDbkNum() {
            $.post("../../T_apply/getDbkNum", { ksid: '2018011915500544030930c5add34d5' }, function (res) {
                //alert($("#jihua1").text());
//                $("#dbkjihua").text(res["dbkjihua"]);//成功数
//                $("#dbkbeiyong").text(res["dbkbeiyong"]);//失败数
            });
        }
          //筛选确认成绩
        function shaixuanqr(){
        
        $('#shaixuanqueren').dialog('open');
        
        }
        //确认考试结果
        /* function querenchengji() {
//             if(isSubmitZx()!=1)
//            {
//                $.messager.alert('操作提示', '分校没有提交，不能操作!', 'warning');
//                return false;
//            }

            //alert(isGuidang());
                if(isGuidang())
        {
            $.messager.alert('操作提示', '考试已经归档，不能进行操作!', 'info');
            return false;
        }
//        if(istongbu()!="OK")
//        {
//            $.messager.alert('操作提示', '业务支出未处理，未同步财务不能确认成绩!', 'info');
//            return false;
//        }

            var rows = $('#yibaokao').datagrid('getSelections');
            if (rows.length == 0) {
                $.messager.alert('操作提示', '请选择数据!', 'warning');
                return false;
            }
//            $.post("../../T_apply/BaoKaoOpert", { query: arr.join(","), bkState: 8 }, function (res) {
//                        if (res == "OK") {
//                        }
//                        else {
//                            $.messager.alert('操作提示', res, 'info');
//                            return false;
//                        }
//                    });
//            var isall=true;
//            for (var i = 0; i < rows.length; i++) {
//                if(rows[i].ta_state!='报考成功')
//                {
//                    isall=false;
//                }
//            }
//            if(isall==false)
//            {
//                $.messager.alert('操作提示', '报考成功才能确认考试成绩，请核对！', 'info');
//                return false;
//            }


            $('#querenchengji').dialog({
                buttons: [{
                    text: '保存',
                    iconCls: 'icon-ok',
                    handler: function () {
                        var arr = [];
                        for (var i = 0; i < rows.length; i++) {
                            arr.push(rows[i].PK_ID);
                        }

                        var iscanjia=$("input[name='iscanjia']:checked").val();
                        var ksRes = $("input[name='ksRes']:checked").val();
                        var hegeriqi = $("#hegeriqi").val();
                        var bukao = $("input[name='bukao']:checked").val();

                        //var baokaoRes = $("input[name='baokaoRes']:checked").val();
                        //,bkState: baokaoRes

                        

                        $.messager.confirm('操作提示', "确认操作这 " + arr.length + " 项吗？", function (r) {
                            if (r) {

                                $.post("../../T_apply/querenchengji", 
                                { query: arr.join(","), iscanjia: iscanjia, ksRes: ksRes, hegeriqi: hegeriqi, bukao: bukao, ksbh: '2018011915500544030930c5add34d5'
//                                
                                }, function (res) {

                                    if (res == "OK") {
                                        //移除删除的数据
                                        $('#querenchengji').dialog("close");
                                        $.messager.alert('操作提示', '修改成功!', 'info');

                                        getshumu();

                                        $("#yibaokao").datagrid("reload");
                                        $("#yibaokao").datagrid("clearSelections");

                                    }
                                    else {
                                        $.messager.alert('操作提示', res, 'info');
                                    }
                                });
                            }
                        });

                    }

                },
                     {
                         text: '取消',
                         iconCls: 'icon-cancel',
                         handler: function () {
                             $('#querenchengji').dialog("close");
                         }
                     }]
            });


            $('#querenchengji').dialog('open');
        } */

        //确认报考结果
        function baokaojieguo() {
//            if(isSubmitZx()!=1)
//            {
//                $.messager.alert('操作提示', '分校没有提交，不能操作!', 'warning');
//                return false;
//            }


        if(isGuidang())
        {
            $.messager.alert('操作提示', '考试已经归档，不能进行操作!', 'info');
            return false;
        }

            var rows = $('#yibaokao').datagrid('getSelections');
            if (rows.length == 0) {
                $.messager.alert('操作提示', '请选择数据!', 'warning');
                return false;
            }

            var isall=true;
            for (var i = 0; i < rows.length; i++) {
                if(rows[i].ks_result!='')
                {
                    isall=false;
                }
            }
            //alert(isall);
            if(isall==false)
            {
                $.messager.alert('操作提示', '考试结果已经确认，不能修改报考结果，请核对！', 'info');
                return false;
            }


            $('#baokaoRes').dialog({
                buttons: [{
                    text: '保存',
                    iconCls: 'icon-ok',
                    handler: function () {
                        var arr = [];
                        for (var i = 0; i < rows.length; i++) {
                            arr.push(rows[i].PK_ID);
                        }

                        var baokaoRes = $("input[name='baokaoRes']:checked").val();

                        //alert(ksRes + "," + ksState + "," + bukao);
                        $.messager.confirm('操作提示', "确认操作这 " + arr.length + " 项吗？", function (r) {
                            if (r) {

                                $.post("../../T_apply/BaoKaoOpert", { query: arr.join(","), bkState: baokaoRes}, function (res) {

                                    if (res == "OK") {
                                        $('#baokaoRes').dialog("close");
                                        $.messager.alert('操作提示', '修改成功!', 'info');

                                        $("#yibaokao").datagrid("reload");
                                        $("#yibaokao").datagrid("clearSelections");

                                    }
                                    else {
                                        $.messager.alert('操作提示', res, 'info');
                                    }
                                });
                            }
                        });

                    }

                },
                     {
                         text: '取消',
                         iconCls: 'icon-cancel',
                         handler: function () {
                             $('#baokaoRes').dialog("close");
                         }
                     }]
            });


            $('#baokaoRes').dialog('open');
        }  
        
                //查询
        function ybkFindData() {
            search1 = "FK_TEID&2018011915500544030930c5add34d5^ta_stateStart_Int&3^ta_stateEnd_Int&8^";
            
            var searchType = $("#searchType").combobox("getValue"); //查询条件
            var wordvalue = $("#wordvalue").val();
            //alert(wordvalue);
            //var fenxiao = $("#" + str + "fenxiao").combobox("getValue"); //分校
            /* if (wordvalue != "") {
                search1 += searchType + "&" + wordvalue + "^"
            } */

            var CarModels = $("#CarModels").combobox("getValue"); //准驾车型
            /* if (CarModels != "") {
                search1 += "S_Carmodels&" + CarModels + "^"
            } */

            var ybk_fenxiao = $("#ybk_fenxiao").combobox("getValue");
           /*  if (ybk_fenxiao != "") {
                search1 += "ta_fenxiao&" + ybk_fenxiao + "^";
            } */

            var kaoshiriqi1=$("#kaoshiriqi1").val();
            /* if(kaoshiriqi1!="")
            {
                search1 += "kaoshiriqiStart_Time&" + kaoshiriqi1 + "^";
            } */
            /* var kaoshiriqi2=$("#kaoshiriqi2").val();
            if(kaoshiriqi2!="")
            {
                search1 += "kaoshiriqiEnd_Time&" + kaoshiriqi2 + "^";
            } */

//            var ybk_state = $("#ybk_state").combobox("getValue");
//            if (ybk_state != "") {
//                search1 += "ta_state1&" + ybk_state + "^";
//            }

            /* var iszhichu = $("#iszhichu").combobox("getValue");
            if (iszhichu != "") {
                search1 += "iszhichuStart_Int&" + iszhichu + "^iszhichuEnd_Int&" + iszhichu + "^";
            } */

            var ks_result = $("#ks_result").combobox("getValue");
            /* if (ks_result != "") {
                search1 += "ks_resultStart_Int&" + ks_result + "^ks_resultEnd_Int&" + ks_result + "^";
            } */

             var iscanjia=$("#iscanjia").combobox("getValue");
            /* if (iscanjia != "") {
                search1 += "iscanjiaStart_Int&" + iscanjia + "^iscanjiaEnd_Int&" + iscanjia + "^";
            } */

//            var mingetype=$("#mingetype").combobox("getValue");
//            if (mingetype != "") {
//                search1 += "ta_mingetypeStart_Int&" + mingetype + "^ta_mingetypeEnd_Int&" + mingetype + "^";
//            }

            $('#yibaokao').datagrid('reload', { asSupportStatus:$("#iscanjia").combobox("getValue"),asExamResults:$("#ks_result").combobox("getValue"),searchType:searchType,wordvalue:wordvalue,stuAssignsSchool:$("#ybk_fenxiao").combobox("getValue"),stuDriverType:$("#CarModels").combobox("getValue"),asExamDate:$("#kaoshiriqi1").val() });
            }

                //查询
        function beiyongFindData() {
            var search = 'FK_TEID&2018011915500544030930c5add34d5^ta_stateStart_Int&9^ta_stateEnd_Int&9^';
            
            var searchType = $("#bysearchType").combobox("getValue"); //查询条件
            var wordvalue = $("#bywordvalue").val();
            //alert(wordvalue);
            //var fenxiao = $("#" + str + "fenxiao").combobox("getValue"); //分校
            /* if (wordvalue != "") {
                search += searchType + "&" + wordvalue + "^"
            }
 */

//            var CarModels = $("#CarModels").combobox("getValue"); //准驾车型
//            if (CarModels != "") {
//                search += "S_Carmodels&" + CarModels + "^"
//            }

            var by_fenxiao = $("#by_fenxiao").combobox("getValue");
            if (by_fenxiao != "") {
                search += "ta_fenxiao&" + by_fenxiao + "^";
            }


            //执行查询
            //alert(search);

            $('#beiyong').datagrid('reload', { search: search });
        }

                //支出列表查询
        var zcsearch = '';
        function zhichuFindData() {
            zcsearch='ks_pkid&2018011915500544030930c5add34d5^';
            
            var searchType = $("#zcsearchType").combobox("getValue"); //查询条件
            var wordvalue = $("#zcwordvalue").val();
            //alert(wordvalue);
            //var fenxiao = $("#" + str + "fenxiao").combobox("getValue"); //分校
           /*  if (wordvalue != "") {
                zcsearch += searchType + "&" + wordvalue + "^"
            } */

           var CarModels = $("#CarModels").combobox("getValue"); //准驾车型
//            if (CarModels != "") {
  //              search += "S_Carmodels&" + CarModels + "^"
//            }

            var zcfenxiao = $("#zcfenxiao").combobox("getValue");
            /* if (zcfenxiao != "") {
                zcsearch += "fenxiaoID&" + zcfenxiao + "^";
            } */


            //执行查询
            //alert(search);

           /* $('#zhichu').datagrid('reload', {asSupportStatus:$("#iscanjia").combobox("getValue"),asExamResults:$("#ks_result").combobox("getValue"),searchType:searchType,wordvalue:wordvalue,stuAssignsSchool:zcfenxiao,stuDriverType:CarModels});*/
        }
        
        function yewuzhichu(){
//             if(isSubmitZx()!=1)
//            {
//                $.messager.alert('操作提示', '分校没有提交，不能操作!', 'warning');
//                return false;
//            }

                    if(isGuidang())
        {
            $.messager.alert('操作提示', '考试已经归档，不能进行操作!', 'info');
            return false;
        }

        if(istongbu()=="OK")
        {
            $.messager.alert('操作提示', '已经同步到财务，不能进行业务支出!', 'info');
            return false;
        }

            //var rows = $('#yibaokao').datagrid('getSelections');
            var rows = $('#yibaokao').datagrid('getSelections');
//            if (rows.length == 0) {
//                $.messager.alert('操作提示', '请选择数据!', 'warning');
//                return false;
//            }

            var arr = [];
            for (var i = 0; i < rows.length; i++) {
                if(rows[i].iszhichu!='未支出')
                {
                    $.messager.alert('操作提示', '学员：' + rows[i].FK_SSID + ',已经提交支出！', 'warning');
                    return false;
                }
                arr.push(rows[i].PK_ID);
            }

            $.messager.confirm('操作提示', "确认操作这 " + arr.length + " 项吗？", function (r) {
                if (r) {
                    $.post("../../Bk_yewuList/yewuzhichu", { pkids: arr.join(","),ksid: '2018011915500544030930c5add34d5'}, function (res) {
                        if (res == "OK") {
                            //移除删除的数据

                            $.messager.alert('操作提示', '操作成功!', 'info');
                            $("#zhichu").datagrid("reload");
                            $("#yibaokao").datagrid("reload");
                            $("#yibaokao").datagrid("clearSelections");
                            getshumuZhichu();
                        }
                        else {
                            $.messager.alert('操作提示', res, 'info');
                        }
                    });
                }
            });
        } 

        function zhichuList()
        {
            $('#zhichu').datagrid({
                //title: '报考业务支出明细', //列表的标题
                iconCls: 'icon-site',
                width: 'auto',
                height: 'auto',
                nowrap: true,
                striped: true,
                collapsible: true,
                url: '/GetDataOut', //获取数据的url
                queryParams:{search:'ks_pkid&2018011915500544030930c5add34d5^'},
                sortName: 'pk_id',
                sortOrder: 'desc',
                idField: 'pk_id',
                toolbar:"#zhichuSearch",
                onClickCell: onClickCell,
//                toolbar: [ 
//                    {
//                        text: '取消支出',
//                        iconCls: 'icon-remove',
//                        handler: function () {
//                            return cannelZhichu();
//                        }
//                    },
//                    {
//                        text: '同步到财务',
//                        iconCls: 'icon-ok',
//                        handler: function () {
//                            return tongbuCaiwu();
//                        }
//                    },
//                     {
//                        text: '导出EXCEL',
//                        iconCls: 'icon-excel',
//                        handler: function () {
//                            return flexiExport();
//                        }
//                    } ],
                columns: [[
                   
                    { field: 'ck', checkbox: true }
                    ,{ field: 'sno', title:  '学员编号', width: 72,sortable: true }
                    ,{ field: 'skahao', title:  '档案编号', width: 72,sortable: true }
					,{ field: 'sname', title:  '学员', width: 60,sortable: true }
                    ,{ field: 'sc_pkid', title:  '支出费用', width: 84,sortable: true }
					,{ field: 'sc_value', title:  '金额',align:'right', width: 64 ,sortable: true,editor:{type:'numberbox',options:{precision:2}},formatter: function (value, rec) {
                            return formatCurrency(value);
                        }}
                    ,{ field: 'swzcjine', title:  '未支出金额',align:'right', width: 64,sortable: true,formatter:function(value){return formatCurrency(value)}}
                    ,{ field: 'scarno', title:  '身份证号', width: 136,sortable: true }
                    ,{ field: 'smob', title:  '手机号码', width: 86,sortable: true }
					,{ field: 'isbaokao', title:  '考试状态', width: 64,sortable: true }
                    ,{ field: 'iszhichu', title:  '支出状态', width: 64,sortable: true }
					,{ field: 'CreatePerson', title:  '记录人', width: 74,sortable: true }
					,{ field: 'CreateTime', title:  '记录日期', width: 74,sortable: true
                    , formatter: function (value, rec) {
                        if (value) {
                            return dateConvert(value);
                        } 
                    } 
}
                ]],
                pagination: true,
                rownumbers: true

            });
        }

        $.extend($.fn.datagrid.methods, {
			editCell: function(jq,param){
				return jq.each(function(){
					var opts = $(this).datagrid('options');
					var fields = $(this).datagrid('getColumnFields',true).concat($(this).datagrid('getColumnFields'));
					for(var i=0; i<fields.length; i++){
						var col = $(this).datagrid('getColumnOption', fields[i]);
						col.editor1 = col.editor;
						if (fields[i] != param.field){
							col.editor = null;
						}
					}
					$(this).datagrid('beginEdit', param.index);
					for(var i=0; i<fields.length; i++){
						var col = $(this).datagrid('getColumnOption', fields[i]);
						col.editor = col.editor1;
					}
				});
			}
		});
		
		var editIndex = undefined;
		function endEditing(){
			if (editIndex == undefined){return true}
			if ($('#zhichu').datagrid('validateRow', editIndex)){
				$('#zhichu').datagrid('endEdit', editIndex);
				editIndex = undefined;
				return true;
			} else {
				return false;
			}
		}
		function onClickCell(index, field){
			if (endEditing()){
				$('#zhichu').datagrid('selectRow', index)
						.datagrid('editCell', {index:index,field:field});
				editIndex = index;
			}
		}


                //保存修改
        function saveUpdateJine() {
            $("#zhichu").datagrid("acceptChanges");
            if(istongbu()=="OK")
            {
                $.messager.alert('操作提示', '已经同步到财务，不能取消此次支出!', 'info');
                return false;
            }

            var rows = $('#zhichu').datagrid('getChecked'); 

            if (rows.length == 0) {
                $.messager.alert('操作提示', '请选择数据!', 'warning');
                return false;
            }

            var pk_ids=[];
            var feiyongs=[];
            for(var i=0;i<rows.length;i++)
            {
                pk_ids.push(rows[i].pk_id);
                feiyongs.push(rows[i].sc_value);
            }

            $.messager.confirm('操作提示', "确认要保存这 " + rows.length + " 项支出吗？", function (r) 
            {
                if(r)
                {
                
                            //alert(row.bc_feiyong); 
            if (rows.length>0) {
                $.ajax({
                    type:"POST",
                    url: "../../Bk_yewuList/saveUpdateJine",
                    data: { pk_ids:  pk_ids.join(","), feiyongs: feiyongs.join(",")},
                    success: function () {
                        getshumuZhichu();
                        $.messager.alert('操作提示', '保存修改成功!', 'info');
                        $("#zhichu").datagrid("reload");
                        $("#zhichu").datagrid("clearSelections");
                    }
                });
            }

                }
            });


        }


        function progress() {
            var win = $.messager.progress({
                title: '请等待',
                text: '数据正在处理中'
            });
        }

            //“导出”按钮     在6.0版本中修改
        function flexiExport() {          
          $.messager.confirm('操作提示', "确认要导出到EXCEL！", function (r) {
        
         if(r)
         {
         progress();
         //var search = "ks_pkid&2018011915500544030930c5add34d5^";
         var p = $('#zhichu').datagrid('options').columns[0];
            var field = [];//所有的列名
            var title = [];//所有的标题名称
            $(p).each(function () {
               if(this.title!=null)
               {
                    field.push(this.field);
                    title.push(this.title); 
               }
             
            });
           var titlestr = removeHTMLTag(title.join(","))
            //alert(title.join(','));
            $.post("../../Bk_yewuList/ExportZhichu",
                {
                    title: titlestr,
                    field: field.join(","),
                    sortName: $('#zhichu').datagrid('options').sortName,
                    sortOrder: $('#zhichu').datagrid('options').sortOrder,
                    search: zcsearch
                }, function (res) {
                    $.messager.progress('close');
                    window.location.href = res;

                });
         }});

            
        };

        function cannelZhichu()
        {
        if(istongbu()=="OK")
        {
            $.messager.alert('操作提示', '已经同步到财务，不能取消此次支出!', 'info');
            return false;
        }

        var rows = $('#zhichu').datagrid('getSelections');
            if (rows.length == 0) {
                $.messager.alert('操作提示', '请选择数据!', 'warning');
                return false;
            }

            var arr = [];
            for (var i = 0; i < rows.length; i++) {
                arr.push(rows[i].pk_id);
            }

            $.messager.confirm('操作提示', "确认要取消这 " + arr.length + " 项支出吗？", function (r) {
                if (r) {
                    $.post("../../Bk_yewuList/cannelZhichu", { pkids: arr.join(",") }, function (res) {
                        if (res == "OK") {
                           //移除删除的数据

                            $.messager.alert('操作提示', '取消支出成功!', 'info');
                            $("#zhichu").datagrid("reload");
                            $("#zhichu").datagrid("clearSelections");
                            $("#yibaokao").datagrid("reload");
                            getshumuZhichu();
                        }
                        else {
                            if (res == "") {
                                $.messager.alert('操作提示', '删除失败!请查看该数据与其他模块下的信息的关联，或联系管理员。', 'info');
                            }
                            else {
                               $.messager.alert('操作提示', res, 'info');
                            }
                        }
                    });
                }
            });
        }

        function istongbu()
        {
            var str="NO"
            $.ajax({type:"POST",async:false,cache:false,url:'../../T_exam/istongbu',data:'ksid=2018011915500544030930c5add34d5',success:function(res){
                //alert(res);
                    str=res;
            }});
            return str;
        }

        function isGuidang()
        {
            var str=false;
            $.ajax({type:"POST",async:false,cache:false,url:'../../T_exam/isGdSate',data:'ksid=2018011915500544030930c5add34d5',success:function(res){
                //alert(res);
                    if(res=='OK')
                    {
                        str=true;
                    }
            }});
            return str;
        }

        function tongbuCaiwu(){
            $.messager.confirm('操作提示', "同步到财务后不能再提交和取消业务支出操作，确定要同步到财务吗？", function (r) {
                if (r) {
                        $.post("../../T_exam/tongbuCaiwu",{ksid:'2018011915500544030930c5add34d5'},function(res){
                        if (res == "OK") {
                           //移除删除的数据
                            $.messager.alert('操作提示', '同步财务成功!', 'info');
                        }
                        else {
                               $.messager.alert('操作提示', res, 'info');
                        }
                        });
                    }
                });
        }


         //接表操作
       function KaoshiAnpai()
       {
            var rows = $('#yibaokao').datagrid('getSelections');
            if (rows.length == 0) {
                $.messager.alert('操作提示', '请选择要安排的学员!', 'warning');
                return false;
            }

             $('#divUpQuery').dialog({
                    buttons: [{
                        text: '提交',
                        iconCls: 'icon-ok',
                        handler: function () {
                            var arr = [];
                            for (var i = 0; i < rows.length; i++) {
                                arr.push(rows[i].PK_ID);
                            }

                            var AnpaiDate=$("#AnpaiDate").val();
                            if(AnpaiDate=="")
                            {
                                $.messager.alert('操作提示', '请选择考试日期!', 'info');
                                return false;
                            }

                            $.messager.confirm('操作提示', "确认操作这 " + arr.length + " 项吗？", function (r) {
                                if (r) {

                                    $.post("../../T_apply/KaoshiAnpai", { query: arr.join(","), AnpaiDate:AnpaiDate }, function (res) {

                                        if (res == "OK") {
                                            //移除删除的数据
                                            $('#divUpQuery').dialog("close");
                                            $.messager.alert('操作提示', '操作成功!', 'info');

                                            $("#yibaokao").datagrid("reload");
                                            $("#yibaokao").datagrid("clearSelections");

                                        }
                                        else {
                                                $.messager.alert('操作提示', res, 'info');
                                        }
                                    });
                                }
                            });

                        }

                    },
                     {
                         text: '取消',
                         iconCls: 'icon-cancel',
                         handler: function () {
                             $('#divUpQuery').dialog("close");
                         }
                     }]
                });
                $('#divUpQuery').dialog("open");
                //****************
       }


    </script>


    <script type="text/javascript" language="javascript">
        function SendSms() {


            var rows = $('#yibaokao').datagrid('getSelections');
            //alert(rows.length);
            if (rows.length == 0) {
                $.messager.alert('操作提示', '请选择数据!', 'warning');
                return false;
            }

            var arr = [];
            var search = "";
            for (var i = 0; i < rows.length; i++) {
                arr.push(rows[i].PK_ID);
                search = search + " it.PK_ID='" + arr[i] + "' or "
            }
            //alert(arr[0]);
            search = search + "1=2"
            //alert(search);
            //获取短信编号
            $.post("../../../D_Sms/GetSmsCode", function (res) {
                //alert(res);

                $("#DS_code").html(res);
            });
            //获取短信编号

            //alert(search);
            //将待发送列表装载到确认发送列表
            //执行查询
            $(function () {

                $('#querenfasong').datagrid({
                    width: '404',
                    height: '131',
                    nowrap: false,
                    striped: true,
                    collapsible: true,
                    url: '../../../T_apply/GetDataNoPage', //获取数据的url
                    queryParams: { search: search },
                    sortName: 'PK_ID',
                    sortOrder: 'asc',
                    idField: 'PK_ID',
                    toolbar: [

                   {
                       text: '删除',
                       iconCls: 'icon-ok',
                       handler: function () {
                           return fasongDelete();
                       }
                   }],
                    columns: [[
                   { field: 'S_NO', title: '学员编号', width: 80 }
                   , { field: 'FK_SSID', title: '学员姓名', width: 120 }
                   , { field: 'S_mob', title: '手机号', width: 136 }
                ]],
                    pagination: false,
                    rownumbers: false
                });

            });
            $("#DS_title").val("关于" + rows[0].FK_TEID + "理论考试结果的通知 (2018/1/23)。");
            var $win;
            $win = $('#test-window');
            $win.window('open');
        }

        //删除的按钮
        function fasongDelete() {
            var rows = $('#querenfasong').datagrid('getSelections');
            var arr = [];
            if (rows.length == 0) {
                $.messager.alert('操作提示', '请选择数据!', 'warning');
                return false;
            }
            $.messager.confirm('操作提示', "确认删除这 " + rows.length + " 项吗？", function (r) {

                for (var i = rows.length - 1; i >= 0; i--) {
                    var index = $('#querenfasong').datagrid('getRowIndex', rows[i]); //获取某行的行号
                    $('#querenfasong').datagrid('deleteRow', index); //通过行号移除该行
                }

            });

        }
        //取消发送 关闭
        function cannelSend() {
            $('#test-window').window('close', true);
        }
        //确认发送短信
        function querenfasong() {
            var title = $("#DS_title").val();
            var SsContent = $("#DS_content").val();
            if (title == "") {
                $.messager.alert('操作提示', '请输入短信标题!', 'warning');
                return false;
            }
            if (SsContent == "") {
                $.messager.alert('操作提示', '请输入短信内容!', 'warning');
                return false;
            }
            $.messager.confirm('操作提示', "确认要发送吗？", function (r) {
                var rows = $('#querenfasong').datagrid('getRows');
                var arr = [], pkid = [], sno = [];
                for (var i = 0; i < rows.length; i++) {
                    arr.push(rows[i].S_mob); //学员手机
                    sno.push(rows[i].S_NO); //学员编号
                    pkid.push(rows[i].PK_ID); //考试报名ID
                }
                //alert(pkid[0]);
                if (r) {
                    $.post("../../../D_Sms/SengSmsAndSmsAdd", { query: arr.join(";"), sno: sno.join(";"), pkids: pkid.join(","), title: title, SsContent: SsContent }, function (res) {
                        //alert(res);
                        $.messager.alert('操作提示', res, 'warning');
                        $("#DS_title").val("");
                        $("#DS_content").val("");
                        cannelSend();
                    });
                }
            });

        }

        //获取回复短信
        function getReply() {
            $.messager.confirm('操作提示', "确认要获取吗？", function (r) {
                if (r) {
                    $.post("../../../D_Reply/getReply", function (res) {
                        var ress = res.split("||");
                        if (ress[0] == "OK") {
                            //移除删除的数据
                            $.messager.alert('操作提示', ress[1], 'info');
                            $("#SetStudentflexigridData").datagrid("reload");
                            $("#SetStudentflexigridData").datagrid("clearSelections");
                        }
                        else {
                            $.messager.alert('操作提示', ress[1], 'info');
                        }
                    });
                }
            });
        }
        //        //提交审查的学员
        function TJshenhexueyuan(bianhaoid, shenfen, i) {
            $.messager.confirm('操作提示', "确认要提交审查的学员吗？", function (r) {
                if (r) {
                    $.post("../../../T_apply/shenhexueyuan", { bianhao: bianhaoid, shenfen: shenfen, i: i, ksid: '2018011915500544030930c5add34d5' }, function (res) {
                        var s = 0;
                        for (var key in res) { //第一层循环取到各个list
                            var List = res[key];
                            for (var student in List) { //第二层循环取list中的对象
                                document.getElementById("bianhao" + s).value = List[student].xybianhao;
                                document.getElementById("shenfenzheng" + s).value = List[student].xyshenfenzheng;
                                document.getElementById("xingming" + s).value = List[student].xyxingming;
                                document.getElementById("shouji" + s).value = List[student].xyshoujihao;
                                document.getElementById("ID" + s).value = List[student].xypkid;
                                document.getElementById("xingbie" + s).value = List[student].xingbie;
                                s++;
                            }
                        }
                    });
                }
            });
        }

         </script>   
          <!--发送短信-->
        <link href="/Content/StyleSheet.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .editor-label{ width:80px;}
    .editor-field,.textarea-box{ padding-left:0px; margin-left:0px; margin-top:8px;}
    </style>
    <style type="text/css">
<!--

.easyui-dialog .input .editor-label-search
{
	width:60px;
}
.easyui-dialog .input .editor-field-search
{
	width:115px;
}
	
.easyui-dialog	.editor-field-to
	{
		width:230px;
		text-align:left;
	}
-->
</style>
<script type="text/javascript" >
    //增加搜索人员
    var i = 5;
    function insert() {
        
        var x = document.getElementById('shaixuanxueyuan').insertRow(0);
        var bianhao = x.insertCell(0);
        var shenfenzheng = x.insertCell(1);
        var xingming = x.insertCell(2);
        var shouji = x.insertCell(3);
        var ID = x.insertCell(4);
        var xingbie = x.insertCell(5);
        bianhao.innerHTML = "<input id='bianhao"+i+"' type='text' />";
        shenfenzheng.innerHTML = "<input id='shenfenzheng" + i + "' type='text'  />";
        xingming.innerHTML = "<input id='xingming" + i + "' type='text'  readonly='readonly'  />";
        shouji.innerHTML = "<input id='shouji" + i + "' type='text' readonly='readonly'  />";
        ID.innerHTML = "<input id='ID" + i + "' type='text' style='display:none' readonly='readonly'  />";
        xingbie.innerHTML = "<input id='xingbie" + i + "' type='text' readonly='readonly'  />";
        i++;
    };
    //核对人员是否存在
   
    function shenhe() {
        var bianhaoid = "."; //编号
        var shenfen = "."; //身份证
        for (var j = 0; j <i; j++) {
            var b = "bianhao" + j;
            var s = "shenfenzheng" + j;
            bianhaoid+= document.getElementById(b).value;
            bianhaoid+=','
            shenfen +=document.getElementById(s).value;
            shenfen += ','
         };

//        //提交审查人员
        TJshenhexueyuan(bianhaoid,shenfen,i);
    };
    //筛选人员确认成绩
    function shaixuanquerenchengji() {
     $('#querenchengji').dialog({
                buttons: [{
                    text: '保存',
                    iconCls: 'icon-ok',
                    handler: function () {
                        var arr = [];
                       
                        for (var j = 0; j < i; j++) {
                        var pkid=document.getElementById("ID" +j).value
                            if (pkid!="无") {
                                  arr.push(pkid);
                            }
                        
                        }
                        if (arr.length==0||arr[0]=="") {
                          alert("您提交的学员都不存在无法确认成绩！");
                           return false;
                        }
                        var iscanjia=$("input[name='iscanjia']:checked").val();
                        var ksRes = $("input[name='ksRes']:checked").val();
                        var hegeriqi = $("#hegeriqi").val();
                        var bukao = $("input[name='bukao']:checked").val();

                        

                        $.messager.confirm('操作提示', "确认操作这 " + arr.length + " 项吗？", function (r) {
                            if (r) {

                                $.post("../../T_apply/querenchengji", 
                                { query: arr.join(","), iscanjia: iscanjia, ksRes: ksRes, hegeriqi: hegeriqi, bukao: bukao, ksbh: '2018011915500544030930c5add34d5'
//                                
                                }, function (res) {

                                    if (res == "OK") {
                                        //移除删除的数据
                                        $('#querenchengji').dialog("close");
                                        $.messager.alert('操作提示', '修改成功!', 'info');

                                        getshumu();

                                        $("#yibaokao").datagrid("reload");
                                        $("#yibaokao").datagrid("clearSelections");

                                    }
                                    else {
                                        $.messager.alert('操作提示', res, 'info');
                                    }
                                });
                            }
                        });

                    }

                },
                     {
                         text: '取消',
                         iconCls: 'icon-cancel',
                         handler: function () {
                             $('#querenchengji').dialog("close");
                         }
                     }]
            });
        $('#querenchengji').dialog('open');
    
    
    }
    //提交总校操作
//    function querenBaokao() {
////        var rows = $('#SetStudentflexigridData').datagrid('getSelections');
////        if (rows.length == 0) {
////            $.messager.alert('操作提示', '请选择数据!', 'warning');
////            return false;
////        }

////        var arr = [];
////        for (var i = 0; i < rows.length; i++) {
////            arr.push(rows[i].PK_ID);
////        }

//        if (isSubmitZx() == 1) {
//            $.messager.alert('操作提示', '报考已经提交总校!', 'warning');
//            return false;
//        }

//        $.messager.confirm('操作提示', "确认报考后不能再进行提交报考和取消报考，请核对无误后再确认？", function (r) {
//            if (r) {
//                $.post("../../T_ExamPlaces/tijiaozongxiao", { ksid: '2018011915500544030930c5add34d5' }, function (res) {
//                    if (res == "OK") {
//                        //移除删除的数据
//                        $.messager.alert('操作提示', '提交总校成功!', 'info');
//                    }
//                    else {
//                        $.messager.alert('操作提示', res, 'info');
//                    }
//                });
//            }
//        });
//    }
    function qingkongshuju()
    {
         for (var j = 0; j < i; j++) {
          document.getElementById("bianhao" + j).value ="";
          document.getElementById("shenfenzheng" + j).value ="";
          document.getElementById("xingming" + j).value = "";
          document.getElementById("shouji" + j).value ="";
          document.getElementById("ID" + j).value = "";
          document.getElementById("xingbie" + j).value = "";
         }
    }
    function showUpFile() {

            $('#upfile').dialog("open");
        };

        function UpFile() {
            var file = document.getElementById('fileUp').value
            //   var search='';
//            var isCreatCost = $("input[name='isCreatCostList']:checked").val();
//            if (isCreatCost == undefined || isCreatCost == null) {
//                alert("请选择导入类型！！！");
//                return false;
//            }
            var searchdaoru = "FK_TEID&2018011915500544030930c5add34d5^ta_stateStart_Int&3^ta_stateEnd_Int&8^";
            var tempStr = "";
            var shenfenzheng = "";
            var kaoshichengji = "";
            var koashishijian = "";
            var filePath = file;
            var istrue = lastname(file);
            if (istrue) {
                var oXL = new ActiveXObject("Excel.application");

                var oWB = oXL.Workbooks.open(filePath);
                oWB.worksheets(1).select();
                
                var oSheet = oWB.ActiveSheet;
                var colcount = oSheet.UsedRange.Cells.Rows.Count; //获取数据行数
                //   var colcolumn = oWB.Worksheets(1).UsedRange.Columns.Count; 获取工作表数量

                try {
                //查询导入
                    //if (isCreatCost=="chaxun") {
                        for (var i = 2; i <= colcount; i++) {
                            if (oSheet.Cells(i, 1).value == "null")
                                break;
                            var a = oSheet.Cells(i, 1).value.toString() == "undefined" ? "" : oSheet.Cells(i, 1).value;
                            tempStr += ("'"+a +"',");
                        }
                    //}
//                 //成绩导入
//                    if (isCreatCost == "chengji") {
//                        for (var i = 3; i <= colcount; i++) {
//                            if (oSheet.Cells(i, 1).value == "null" || oSheet.Cells(i, 2).value == "null" || oSheet.Cells(i, 3).value == "null")
//                                break;
//                            alert(colcount);
//                            var a = oSheet.Cells(i, 1).value;
//                            alert(a);
//                            var b = oSheet.Cells(i, 2).value;
//                            alert(b);
//                            var c = oSheet.Cells(i, 3).value;
//                            alert(c);
//                            shenfenzheng += (a + ",");
//                            kaoshichengji += (b + ",");
//                            koashishijian += (c + ",");
//                        }
//                    }
                    
                } catch (e) {


                }
                //  document.all.txtArea.value = tempStr;
                oXL.Quit();
                CollectGarbage();
               
                //成绩导入
//                if (isCreatCost == "chengji") {
//                    progress();
//                    alert(kaoshichengji);
//                    shenfenzheng = shenfenzheng.substring(0, shenfenzheng.length - 1);
//                    kaoshichengji = kaoshichengji.substring(0, kaoshichengji.length - 1);
//                    koashishijian = koashishijian.substring(0, koashishijian.length - 1);
//                        $.post("../../T_apply/excelchengjiadd", { shenfenzheng: shenfenzheng, kaoshichengji: kaoshichengji, koashishijian: koashishijian }, function (res) {
//                            //alert(res);
//                            $.messager.alert('操作提示', res, 'warning');
//                            $('#upfile').dialog("close");
//                            $('#yesflexigridData').datagrid('reload', { search: search + "allstu" }); 
//                            $.messager.progress('close');
//                        });
//                }

                //查询导入
                //if (isCreatCost == "chaxun") {
                    if (tempStr != "" || tempStr != null || tempStr != undefined) {
                        progress();
                        tempStr = tempStr.substring(0, tempStr.length - 1);
                        searchdaoru = "daorusfz&" + tempStr + "^" + searchdaoru;
                        $('#upfile').dialog("close");
                         $.post("../../T_apply/getcuowu1", { tempStr: tempStr, search: searchdaoru }, function (res) {
                        document.getElementById("Divvvv").innerHTML = res;
                        $('#Divvv').dialog("open");
                        $.messager.alert('操作提示', '操作成功!');
                        $('#yibaokao').datagrid('reload', {search: searchdaoru });
                        $.messager.progress('close');
                    });
                    }
                //}

            }
        };
        function lastname(filepath) {
            //获取欲上传的文件路径

            if (filepath == null || filepath == undefined || filepath == "") {
                alert("请选择要上传的数据模板");
                return false;
            }
            //为了避免转义反斜杠出问题，这里将对其进行转换
            var re = /(\\+)/g;
            var filename = filepath.replace(re, "#");
            //对路径字符串进行剪切截取
            var one = filename.split("#");
            //获取数组中最后一个，即文件名
            var two = one[one.length - 1];
            //再对文件名进行截取，以取得后缀名
            var three = two.split(".");
            //获取截取的最后一个字符串，即为后缀名
            var last = three[three.length - 1];
            //添加需要判断的后缀名类型
            var tp = "xls,xlsx,XLS,XLSX";
            //返回符合条件的后缀名在字符串中的位置
            var rs = tp.indexOf(last);
            //如果返回的结果大于或等于0，说明包含允许上传的文件类型
            if (rs >= 0) {
                return true;
            } else {
                alert("您选择的上传文件不是有效的EXCEL文件！");
                return false;
            }
        }
</script>
<script src="../resources/Res/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

      <base target = "_self">
</head>
<body>
    



	 <div id="shaixuanqueren" title="科目一确认成绩" class="easyui-dialog" closed="true" modal="true" title="筛选确认成绩" style="width: 830px; height: 350px;">
    <div class="xrows">
           <a href="#" class="easyui-linkbutton" iconCls="icon-add" onclick='insert();'  plain="true">增加搜索人员</a>
           <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick='shenhe();'  plain="true">核对人员是否存在</a>
           <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick='shaixuanquerenchengji();'  plain="true">确认成绩</a>
           <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick='qingkongshuju();'  plain="true">清空数据</a>
    </div> 
    <hr />
    <div>
<table width="800px"  border="1" align="center" cellpadding="1" cellspacing="0">
  <tr align="center" valign="middle">
    <td bordercolor="#333333" bgcolor="#999999" style="width: 160px"><span class="STYLE5">编号</span></td>
    <td bordercolor="#333333" bgcolor="#999999" style="width: 160px"><span class="STYLE5">身份证</span></td>
    <td bordercolor="#333333" bgcolor="#999999" style="width: 160px"><span class="STYLE5">姓名</span></td>
    <td bordercolor="#333333" bgcolor="#999999" style="width: 160px"><span class="STYLE5">手机号</span></td>
    <td bordercolor="#333333" bgcolor="#999999" style="width: 160px"><span class="STYLE5">性别</span></td>
    <td bordercolor="#333333" bgcolor="#999999" style="width: 160px" style="display:none"><span class="STYLE5">ID</span></td>
  </tr>
</table>
    </div>
    <div >
    <table id="shaixuanxueyuan" width='800px'  border='1' align='center' cellpadding='1' cellspacing='0'>
    <tr>
     <td><input id='bianhao0' type='text' /></td>  
     <td><input id='shenfenzheng0' type='text' /></td> 
     <td><input id='xingming0' type='text'  readonly='readonly'   /></td> 
     <td><input id='shouji0' type='text'  readonly='readonly'  /></td> 
     <td><input id='ID0' type='text' style='display:none' readonly='readonly'  /></td> 
     <td><input id='xingbie0' type='text'  readonly='readonly'  /></td> 
    </tr>
     <tr>
     <td><input id='bianhao1' type='text'   /></td>  
     <td><input id='shenfenzheng1' type='text'   /></td> 
     <td><input id='xingming1' type='text' readonly='readonly'  /></td> 
     <td><input id='shouji1' type='text'  readonly='readonly' /></td> 
     <td><input id='ID1' type='text' style='display:none' readonly='readonly'  /></td> 
     <td><input id='xingbie1' type='text'  readonly='readonly' /></td> 
    </tr>
     <tr>
     <td><input id='bianhao2' type='text'  /></td>  
     <td><input id='shenfenzheng2' type='text'  /></td> 
     <td><input id='xingming2' type='text' readonly='readonly'  /></td> 
     <td><input id='shouji2' type='text' readonly='readonly'  /></td> 
     <td><input id='ID2' type='text' style='display:none'  readonly='readonly' /></td> 
     <td><input id='xingbie2' type='text' readonly='readonly'  /></td> 
    </tr>
     <tr>
     <td><input id='bianhao3' type='text'  /></td>  
     <td><input id='shenfenzheng3' type='text'  /></td> 
     <td><input id='xingming3' type='text' readonly='readonly'  /></td> 
     <td><input id='shouji3' type='text'  readonly='readonly' /></td> 
     <td><input id='ID3' type='text' style='display:none' readonly='readonly'  /></td> 
     <td><input id='xingbie3' type='text' readonly='readonly'  /></td> 
    </tr>
     <tr>
     <td><input id='bianhao4' type='text'  /></td>  
     <td><input id='shenfenzheng4' type='text'   /></td> 
     <td><input id='xingming4' type='text'  readonly='readonly' /></td> 
     <td><input id='shouji4' type='text' readonly='readonly'  /></td> 
     <td><input id='ID4' type='text' style='display:none'  readonly='readonly' /></td> 
     <td><input id='xingbie4' type='text'  readonly='readonly' /></td> 
    </tr>
    </table>
    </div>
</div>


    <div class="easyui-layout" style="width:100%;margin:5px;" fit="true">  
 
 <div class="easyui-tabs" data-options="tabWidth:150" fit="true">
       <div title="已报考学员列表" style="padding:2px;">
            <table id="yibaokao" fit="true"></table>
        </div>
       <div title="待报考学员列表" style="padding:2px;">
            <table id="beiyong" fit="true"></table>
       </div>
    </div>


    </div> 

<div id="querenchengji" title="科目一确认成绩" class="easyui-dialog" closed="true" modal="true" title="确认成绩" style="width: 500px; height: 280px;">
    
    <div class="xrows">
            <span class="left">科目一参加状态：</span>
            <span class="right">
                <input type="radio"  value="0" checked="checked" name="iscanjia"/>参加
                <input type="radio"  value="1" name="iscanjia"/>缺考
                <input type="radio"  value="5" name="iscanjia"/>重新参加
                <input type="radio"  value="6" name="iscanjia"/>未参加
            </span>
    </div>
    <div class="xrows">
        <span class="left">科目一考试成绩：</span>
        <span class="right">
            <input type="radio"  value="0" checked="checked" name="ksRes"/>合格
            <input type="radio"  value="1" name="ksRes"/>不合格
            
        </span>
    </div>


    <div class="xrows youxiaoqi">
        <span class="left">科目一考试日期：</span>
        <span class="right">
            <input type="text" class="input-textbox" id="hegeriqi" value="2018-01-23" onclick = "WdatePicker()" size="10" />
        </span>
    </div>
</div>


<div id="baokaoRes" title="确认报考结果" class="easyui-dialog" closed="true" modal="true" style="width: 420px; height: 120px;">
    <div class="xrows">
        <span class="left">报考结果：</span>
        <span class="right" style=" width:210px;">
            <input type="radio"  value="8" checked="checked" name="baokaoRes"/>报考成功
            <input type="radio"  value="3" name="baokaoRes"/>报考失败
            <input type="radio"  value="5" name="baokaoRes"/>已报考
        </span>
         <input type="hidden" name="GetID" value="${exaId}">
		</div>
</div>

   <div id="tb_yibaokao" onkeydown="if(event.keyCode==13){ybkFindData()}" style="padding:5px;height:auto">
        <div style="margin-bottom:5px">
            
            <a href="#" class="easyui-linkbutton" iconCls="icon-remove" onclick='baokaoOpert("yibaokao","9");' plain="true">取消报考</a>
            
            
             
       <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick='yewuzhichu();' plain="true">业务支出</a>
        <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick='tongbuCaiwu();' plain="true">同步财务</a>
            
           <!--  <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick='querenchengji();' plain="true">确认成绩</a> -->
            
           <!--   <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick='SendSms();' plain="true">发短信</a>
            <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick='getReply();' plain="true">获回复</a> -->
            <a href="#" class="easyui-linkbutton" iconCls="icon-excel" onclick='ExportYibaokao();' plain="true">导EXCEL</a>
          <!--   <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick='shaixuanqr();'  plain="true">筛选确认成绩</a> -->
           <!--  <a href="#" onclick="showUpFile();" class="easyui-linkbutton" iconCls="icon-ok" plain="true">导入Excle</a> -->
           <!--  <div  class="textshu">
            <a href="#" class="easyui-linkbutton" plain="false">报考结果：[成功：<span id="cgshu"></span>] [失败：<span id="sbshu"></span>] [已报考：<span id="ybkshu"></span>]</a>
            <a href="#" class="easyui-linkbutton" plain="false">参加结果：[参加：<span id="cjshu"></span>] [缺考：<span id="qkshu"></span>]</a> 
            
            <a href="#" class="easyui-linkbutton" plain="false">考试结果：[合格：<span id="hgshu"></span>] [不合格：<span id="bhgshu"></span>] [通过：<span id="tongguo"></span>]</a> 
            <span style=" display:none;"><a href="#" class="easyui-linkbutton" plain="false">支出结果：[已支出：<span id="yzcshu"></span>] [未支出：<span id="wzcshu"></span>] [待支出：<span id="dzcshu"></span>]</a></span>          
            </div> -->
        </div>
        <div>
            <div class="searchList">
                <div style=" height:30px;">
              
              &nbsp;参加结果：<select class="easyui-combobox" panelHeight="auto" id="iscanjia" style="width:60px">
                    <option value="">全部</option>
                    <option value="0">参加</option>
                    <option value="1">缺考</option>
                    <option value="5">重新参加</option>
                    <option value="6">未参加</option>
               </select>
               
               &nbsp;考试结果: <select class="easyui-combobox" panelHeight="auto" id="ks_result" style="width:60px">
                    <option value="">全部</option>
                    <option value="0">合格</option>
                    <option value="1">不合格</option>
                    <option value="-1">通过</option>
                    <option value="2">未处理</option>
               </select>
               <span style=" display:none;">
               &nbsp;支出状态: <select class="easyui-combobox" panelHeight="auto" id="iszhichu" style="width:60px">
                    <option value="">全部</option>
                    <option value="0">未支出</option>
                    <option value="1">待支出</option>
                    <option value="2">已支出</option>
               </select>
               </span>
                <a href="javascript:void(0);" onclick="ybkFindData();" class="easyui-linkbutton" iconCls="icon-search">查询</a>
                </div>
                <div style=" height:30px;">
                &nbsp;查询条件：<select class="easyui-combobox" panelHeight="auto" id="searchType" style="width:70px">
                <option value="stuCardId">身份证号</option>
                <option value="stuId">学员编号</option>
                <option value="ticketsId">准考证号</option>
                <option value="stuRecoderId">档案编号</option>
                <option value="stuName">学员姓名</option>
                <option value="stuPhone">手机号码</option>
           </select>
           &nbsp;关键字: <input class="input-textbox" id="wordvalue" style="width:80px" />
           &nbsp;准驾车型：<select class="easyui-combobox" id="CarModels" name="CarModels" style="width:70px;"><option value="">请选择</option>
<option value="20130819150209578125066d0a9bd68">C1</option>
<option value="201403190851049953614a850002db0">C2</option>
</select> 
            &nbsp;分校: <select class="easyui-combobox" id="ybk_fenxiao" name="ybk_fenxiao" panelHeight="auto" style="width:60px;"><option value="">全部</option>
<option value="2014033114432090614426dd681c9f6">总校</option>
<option value="2018011210134664343439256106478">挂靠</option>
</select> 
               &nbsp;考试日期：<input type="text" class="input-textbox" id="kaoshiriqi1" onclick = "WdatePicker()" style="width:70px" /> <!-- 到 <input type="text" class="input-textbox" id="kaoshiriqi2" onclick = "WdatePicker()" style="width:70px" /> -->
               </div>
            </div>
        </div>
    </div>

       <div id="tb_beiyong" onkeydown="if(event.keyCode==13){beiyongFindData()}" style="padding:5px;height:auto">
        <div style="margin-bottom:5px">
            <a href="#" class="easyui-linkbutton" iconCls="icon-remove" onclick='baokaoOpert("beiyong","5");' plain="true">提交已报考</a>
            <a href="#" class="easyui-linkbutton" iconCls="icon-remove" onclick='baokaoOp ert("beiyong","2");' plain="true">释放待报考</a>
            
        </div>
        <div>
            查询条件：
            <select class="easyui-combobox" panelHeight="auto" id="bysearchType" style="width:70px">
                <option value="stuCardId">身份证号</option>
                <option value="stuId">学员编号</option>
                <option value="ticketsId">准考证号</option>
                <option value="stuRecoderId">档案编号</option>
                <option value="stuName">学员姓名</option>
                <option value="stuPhone">手机号码</option>
           </select>&nbsp;
            关键字: <input class="input-textbox" id="bywordvalue" style="width:80px" />
            分校: <select class="easyui-combobox" id="by_fenxiao" name="by_fenxiao" panelHeight="auto" style="width:60px;"><option value="">全部</option>
<option value="2014033114432090614426dd681c9f6">总校</option>
<option value="2018011210134664343439256106478">挂靠</option>
</select>
           <a href="javascript:void(0);" onclick="beiyongFindData();" class="easyui-linkbutton" iconCls="icon-search">查询</a>
        </div>
    </div>
 

        <div id="zhichuSearch" onkeydown="if(event.keyCode==13){zhichuFindData()} style="height:auto; padding:5px;">
        <div style="margin-bottom:5px">
            <a href="#" class="easyui-linkbutton" iconCls="icon-remove" onclick='cannelZhichu();' plain="true">取消支出</a>
            <a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick='saveUpdateJine();' plain="true">保存修改</a>
            <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick='tongbuCaiwu();' plain="true">同步财务</a>
            <a href="#" class="easyui-linkbutton" iconCls="icon-excel" onclick='flexiExport();' plain="true">导出EXCEL</a><br />
            <a href="#" class="easyui-linkbutton" >报考[人数：<span id="baokaoshu">0</span>] [费用：<span id="baokaofei">0</span>]</a>   
            <a href="#" class="easyui-linkbutton" >补考[人数：<span id="bukaoshu">0</span>] [费用：<span id="bukaofei">0</span>] </a>    
        </div>
        <div>
            查询条件：
            <select class="easyui-combobox" panelHeight="auto" id="zcsearchType" style="width:70px">
               <option value="stuCardId">身份证号</option>
                <option value="stuId">学员编号</option>
                <option value="ticketsId">准考证号</option>
                <option value="stuRecoderId">档案编号</option>
                <option value="stuName">学员姓名</option>
                <option value="stuPhone">手机号码</option>
           </select>&nbsp;
            关键字: <input class="input-textbox" id="zcwordvalue" style="width:80px" />
            分校: <select class="easyui-combobox" id="zcfenxiao" name="zcfenxiao" panelHeight="auto" style="width:60px;"><option value="">全部</option>
<option value="2014033114432090614426dd681c9f6">总校</option>
<option value="2018011210134664343439256106478">挂靠</option>
</select>
           <a href="javascript:void(0);" onclick="zhichuFindData();" class="easyui-linkbutton" iconCls="icon-search">查询</a>
        </div>
    </div>

    <!--发送短信-->

        <div id="test-window" class="easyui-window" title="发送信息" minimizable="false" collapsible="false" closed="true" modal="true" style="width: 600px; height: 420px;">
        <div style="padding: 5px; padding-top:0px; text-align: center;">

                <fieldset style=" width:542px; padding-bottom:10px;">
        <legend>
            <input class="submitcss" type="button" id="fasong" onclick="querenfasong();" value="确认发送" />
            <input class="submitcss" type="button" onclick="cannelSend();" value="取消发送" />
        </legend>
        <div class="bigdiv">
            <div style="width:113px; float:left; height:25px;">
                <label for="DS_code">短信编号</label>
            </div>
            <div style="width:400px; float:left; text-align:left;height:25px; font-weight:bold;">
                <span id="DS_code"></span>
            </div>
            <div class="editor-label">
                <label for="DS_title">短信标题</label>
            </div>
            <div class="textarea-box">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过150" data-val-length-max="150" style="width:400px;" id="DS_title" name="DS_title" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="DS_title" data-valmsg-replace="true"></span>
            </div>
            
            <div class="editor-label">
                <label for="DS_content">短信内容</label>
            </div>
            <div class="textarea-box">
                <textarea cols="10" data-val="true" data-val-length="长度不可超过4000" data-val-length-max="4000" id="DS_content" name="DS_content" rows="2" style="width:400px;">
</textarea>
                <span class="field-validation-valid" data-valmsg-for="DS_content" data-valmsg-replace="true"></span>
            </div>
            <div class="editor-label">
                <label for="DS_title">接 收 人</label>
            </div>
            <div class="textarea-box">
            <div style="width:400px; float:left; margin-left:27px;"><table id="querenfasong"></table></div>
            </div>
        </div>
    </fieldset>
        </div>
        </div>

        <div id="divUpQuery" title="考试安排" class="easyui-dialog" closed="true" modal="true"
        iconcls="icon-edit" style="width:280px; height:150px; text-align:center;">
        <br /><br />考试日期：<input type="text" id="AnpaiDate" value="2018-01-23" onclick = "WdatePicker()" size="10" />
    </div>
    <div id="upfile" title="文件上传" class="easyui-dialog" closed="true" modal="true"
        iconcls="icon-search" style="width:400px; height:200px; text-align:center;">
        <a href="../../Files/查询模板.xlsx"  class="easyui-linkbutton" iconCls="icon-ok" plain="true">查询模版下载</a>
        
          <p></p><input type="file" id="fileUp" name="fileUp" size="23" />
             <a href="javascript:void(0);" onclick="UpFile();" class="easyui-linkbutton" iconCls="icon-ok">上传</a>
               
     </div>
     <div id="Divvv" title="未导入原因" class="easyui-dialog" closed="true" modal="true"
        iconcls="icon-search" style="width:600px; height:400px; text-align:center;">
        <div id="Divvvv" style="width:585px; height:363px;overflow:auto;text-align:left;"></div>
     </div>

</body>
</html>
